package com.dao;

import java.util.List;

import com.model.Astuff;
import com.model.Newitem;

public interface NewsDao {
	public List<Newitem> getNewsListByUser(Astuff astuff, final int offset,
			final int length);

	public Newitem getNewsById(int itemid);
	
	public Long getNewsCountByUser(Astuff astuff);
	
	public List<Newitem> getUnReadNewsListByUser(Astuff astuff, final int offset,
			final int length);
	
	public Long getUnReadNewsCountByUser(Astuff astuff);
	
	public void setNewsReaded(Astuff astuff, int itemid);
}
